package com.example.neteasecloudmusic.ui.dicovery;

import com.example.neteasecloudmusic.bean.discoveryBean.Bean;
import com.example.neteasecloudmusic.network.HomeService;
import com.example.neteasecloudmusic.network.RetrofitClient;

import io.reactivex.rxjava3.core.Flowable;

public class DiscoveryModel implements DiscoveryContract.IDiscoveryModel {
    // from internet

    @Override
    public Flowable<Bean> getData() {
        return RetrofitClient.getInstance().getService(HomeService.class).getHomeData();
    }
}
